package com.jiahe.video.model;


import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author author
 */
@Data
public class GroupInfo {

    private String groupId;

    private String lightStatusTemp;
    private Long lightStatusTempLastChangeTime;

    private String lightStatus;
    private Long lightStatusLastChangeTime;

    private List<String> imageList = new ArrayList<>();

    public GroupInfo(String groupId){
        this.groupId = groupId;

        this.lightStatusTemp = "-1";
        this.lightStatusTempLastChangeTime = System.currentTimeMillis();

        this.lightStatus = "-1";
        this.lightStatusLastChangeTime = System.currentTimeMillis();
    }

    public void changeStatus(){
        this.lightStatus = lightStatusTemp;
        this.lightStatusTempLastChangeTime = System.currentTimeMillis();
        this.lightStatusLastChangeTime = System.currentTimeMillis();
        this.imageList = new ArrayList<>();
    }
}

